package com.atguigu.gmall.all.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.order.client.OrderFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.jws.WebParam;
import java.util.Map;

/**
 * @author sunjipu
 * @create 2020-04-18 15:13
 */
@Controller
@RequestMapping
public class OrderController {

//    @Autowired
//    private OrderFeignClient orderFeignClient;
//    /**
//     * 确认订单
//     * @param model
//     * @return
//     */
//    @GetMapping("trade.html")
//    @LoginRequire
//    public String trade(WebParam.Mode model) {
//        Result<Map<String, Object>> result = orderFeignClient.trade();
//
//        model.addAllAttributes(result.getData());
//        return "order/trade";
//    }
}